import request from '@/utils/request'

// 获取学科tab
export const scanExamSubject = (query) => {
    return request({
        url: '/scan/exam/subject',
        method: 'get',
        params: query
    })
}

// 扫描首页
export const scanStatisticsHomepage = (query) => {
    return request({
        url: '/scan/statistics/homepage',
        method: 'get',
        params: query
    })
}

// 获取选项异常数据
export const scanSelectAbnormalAll = (query) => {
    return request({
        url: '/scan/select/abnormal/all',
        method: 'get',
        params: query
    })
}

// 选项查询
export const scanQuestionCardSelect = (query) => {
    return request({
        url: '/scan/question/card/select',
        method: 'get',
        params: query
    })
}

// 识别记录
export const scanRecognitionRecord = (query) => {
    return request({
        url: '/scan/recognition/record',
        method: 'post',
        data: query
    })
}

// 未上传-题卡
export const scanNotuploaded = (query) => {
    return request({
        url: '/scan/notuploaded/record',
        method: 'post',
        data: query
    })
}

// 扫描开关
export const scanOnoff = (query) => {
    return request({
        url: '/scan/onoff',
        method: 'post',
        data: query
    })
}

// 删除-单个-批量
export const scanDel = (query) => {
    return request({
        url: '/scan/del/scan/details',
        method: 'post',
        data: query
    })
}


export const scanAbsence = (query) => {
    return request({
        url: '/scan/change/absence/status',
        method: 'post',
        data: query
    })
}


export const scanHandlerAbsenceStatus = (query) => {
    return request({
        url: '/scan/handler/absence/status',
        method: 'post',
        data: query
    })
}

export const scanStatisticsGetTitle = (query) => {
    return request({
        url: '/scan/statistics/getTitle',
        method: 'get',
        params: query
    })
}

export const scanRelPasscardAll = (query) => {
    return request({
        url: '/scan/rel/passcard/all',
        method: 'post',
        data: query
    })
}

//全部删除
export const scanAlldelete = (query) => {
    return request({
        url: '/scan/del/details/all',
        method: 'post',
        data: query
    })
}

export const exportsmgl = (query) => {
    return request({
        url: '/scan/review/export',
        method: 'get',
        params:query,
        responseType: 'blob',
    })
}


